package com.gaofei;

import com.gaofei.user.api.UserFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients
@RestController
@RequestMapping("kafka")
public class KafkaApp {
    public static void main(String[] args) {
        SpringApplication.run(KafkaApp.class);
    }

//    @Autowired
//    UserFeign userFeign;



    @RequestMapping("/hello")
    public String hello(){
        //再这个接口中调用user-server中的list接口
//        String list = userFeign.list();

        return "list";
    }
}
